#pragma once
#include <qthread.h>
#include <qfile.h>
#include <qprogressbar.h>
#include <qserialport.h>
#include <LoggerSingleton/LoggerSingleton.h>
class FileSendThread :public QThread
{
public:
	FileSendThread();
	FileSendThread(QSerialPort* serial, QFile* file, QProgressBar* progress);
	void run() override;

private:
	QSerialPort* p_serial;
	QFile* file_to_send;
	QProgressBar* p_progress;

};